home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #1 / Ham Radio 2000.iso / ham2000 / tcp_ip / map / map.doc < prev    next >
Encoding:
Text File  |  1992-11-12  |  6.9 KB  |  157 lines

  1.  
  2.                                    The Map Program
  3.  
  4.                               Version 2.7, 1 April 1991
  5.  
  6.  
  7.                I was interested in techniques for producing maps, and found
  8.           the article by William D. Johnston in the May and June 1979  Byte
  9.           Magazine.    This   two  part  article   provided  an   excellent
  10.           introduction and source  code in Basic  language.   His code  was
  11.           restricted to the algorithms and  did not get involved with  user
  12.           interface.  To evaluate his algorithms and try out the displays I
  13.           coded the program and a simple interface in Borland C++.
  14.  
  15.       The program in its current form is highly based on Mr. Johnston's
  16.           algorithms and provides no significant additional capabilities.
  17.  
  18.                I also found  a high  resolution database  called the  Micro
  19.           World Data Bank II (MWDB II).  This  database was  1 megabyte  in
  20.           length  and  good  down  to  minutes  of a  degree.  Public Brand
  21.           Software has this database on disk (Address below).
  22.  
  23.                Another  database  that  is  useful  is  called  "The  World
  24.           Digitized".  This is a lower resolution database than MWDB II but
  25.           is quite  popular.    The  program  CONVERT.EXE  will  perform  a
  26.           translation on  the .MPS  files to  combine and  convert them  to
  27.           MWDB II format. I use a hard disk so I don't know if this program
  28.           is useful to  floppy only users.   The Public (Software)  Library
  29.           has this database on disk (Address below).
  30.  
  31.                To run the   program  and receive   help  you   use the  DOS
  32.           common method of the question option "/?".  Just type "map/?" and
  33.           the following usage help will be displayed:
  34.  
  35.                     Usage: map [/bcdgilmrsxy]
  36.  
  37.                     /b   Boundaries Off
  38.                     /c   Countries On
  39.                     /dn  Database ('MWDBII' Default)
  40.                     /g   Grid lines On
  41.                     /i   Islands Off
  42.                     /l   Lakes Off
  43.                     /mn  Map Resolution (5 Default)
  44.                     /r   Rivers On
  45.                     /s   States On
  46.                     /x   Colors On
  47.                     /y   BIOS Video Mode On
  48.  
  49.                     Defaults to Boundaries and Islands On
  50.  
  51.                The defaults are  what I  thought should  be fairly  common.
  52.           The map database has 5 resolutions, and can be selected with  the
  53.           'm' option.  5  is the lowest resolution  and 1 is the  greatest.
  54.           If you  have several  different databases  you  can use  the  'd'
  55.           option and provide  the path and  filename (128 Characters  max).
  56.           The 'm' and 'd' options should be placed at the end.  They can be
  57.           put anywhere but it's a little easier at the end.  Example:
  58.  
  59.                     map/glrsm1
  60.  
  61.           If you use the option in the middle you will need to put a  space
  62.           between it and the remaining options.  Example:
  63.  
  64.                     map/gldworld /rs
  65.  
  66.           These are the most foolproof methods.
  67.  
  68.             A little about the speed of the result.  The program is   quite
  69.           slow on an 8088 without a math coprocessor, and speed is  getting
  70.           acceptable on an  80286.  The  C language  standard uses   double
  71.           precision math.    This is  a  waste  with the  current  database
  72.           resolution.  An integer version  of the math routines would  sure
  73.           speed up  the program quite a bit.   The map program uses Borland
  74.           auto detect  of a math coprocessor and  graphics device type (EGA
  75.           and Low-Res VGA, as well as HERC and good old CGA).
  76.  
  77.                If you want  to quit the  plotting on  the screen, just  hit
  78.           any key and a bell and prompt will  appear to ask if you want  to
  79.           quit.  By  saying yes gets  you back to  DOS.   You can also  use
  80.           Control-C or  Control-Break  to  get out  while  drawing.    When
  81.           finished the word "Done" is displayed.  If you press a key here -
  82.           poof! you lose it.
  83.  
  84.                The MWDB II map starts off near  the Mekong  Delta.  It  may
  85.           take a while to get to where you want your map centered on.   The
  86.           "World" database can  be configured any  way you  like using  the
  87.           CONVERT.WRK file  and  then  running CONVERT.EXE  on  it.    Both
  88.           databases have errors that can be fixed.  The "World" database of
  89.           African political boundaries  seems misplaced?   And the  Pacific
  90.           data seems to  extend to 190  degrees??   The MWDB II has islands
  91.           north of Canada in the Lake database.
  92.  
  93.           The following example orients the world to Los Angeles Intl  Apt.
  94.           and its start of runway 24 Left.   If you look close you can  see
  95.           airplanes going down the runway...
  96.  
  97.                West Longitudes and South Latitudes are negative
  98.  
  99.                Latitude of the map center [+-]dd.mm : 33.57
  100.                Longitude of the map center [+-]ddd.mm : -118.24
  101.  
  102.                Select from the following options:
  103.  
  104.                1 - Perspective Projection
  105.                2 - Modified Perspective Projection
  106.                3 - Azimuthal Equidistant Projection
  107.  
  108.                Choice : 1
  109.  
  110.                Observer altitude (km) : 10000
  111.                Observer facing azimuth (0 - 359 degrees) : 0
  112.  
  113.  
  114.           -------
  115.  
  116.             There are quite a few EGA screen printing programs, but the
  117.           first I came across was Pizazz!.  You load this program first
  118.           into memory (it's known as a TSR program - Terminates and Stays
  119.           Resident) and then you press the Shift-PrtSc keys when the map
  120.           drawing is complete.  The program will then allow you to crop
  121.           the picture and adjust the aspect ratio for just about every
  122.           printer known to man (Laser also).  To order Pizazz! see the
  123.           address below, I recommend it.
  124.  
  125.           -------
  126.  
  127.           Thanks to:
  128.           
  129.                 BYTE Magazine editors and publishers
  130.                 Mr. Johnston for his great article and algorithms
  131.                 Fred Pospeshil and Antonio Riveria for the database
  132.  
  133.           All in all - A most enjoyable and interesting subject and pastime.
  134.           If you get tired of looking at the world, use EXE files for data:
  135.  
  136.           map /d\bc\bin\bc.exe
  137.  
  138.           -------
  139.  
  140.           Public (Software) Library (MAP, World Digitized)
  141.           P.O. Box 35705
  142.           Houston, Texas, 77235-5705
  143.           713-665-7017 (@ $25)
  144.  
  145.           Public Brand Software (MWDB II)
  146.           P.O Box 51315
  147.           Indianapolis, IN 46251
  148.           800-426-DISK (@ $25)
  149.  
  150.           Programmers Connection (Pizazz!)
  151.           7249 Whipple Ave NW
  152.           North Canton, OH 44720
  153.           800-336-1166 (@ $50)
  154.  
  155.           Steve R. Sampson
  156.           CompuServe: 75136,626
  157.